package com.kangye.enterprise.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.kangye.enterprise.entity.*;
import com.kangye.enterprise.mapper.BannerMapper;
import com.kangye.enterprise.service.BannerService;
import com.kangye.enterprise.util.ViewJsonObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.BindingResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.sql.Date;
import java.sql.Time;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.UUID;

/**
 * @program: enterprise
 * @description: 轮播图实现类
 * @author: 索腾龙
 * @create: 2021-05-27 15:19
 **/
@Service
@Transactional
public class BannerServiceImpl implements BannerService {
    @Autowired
    private BannerMapper bannerMapper;

    //热点配置表格展示（李易衡）
    @Override
    public ViewJsonObject<Map<String,Object>> hotspot(Integer page , Integer limit, String demoReload, String deSelect, Circular circular, BindingResult bindingResult, Integer itemsState) {
        //把当前页和每页显示的条数传进来
        PageHelper.startPage(page, limit);
        //调用mapper层
        List<Map<String,Object>> list = bannerMapper.hotspot(demoReload,deSelect,circular,bindingResult ,itemsState);
        //创建分页对象,把数据存在pageInfo里
        PageInfo<Map<String,Object>> pageInfo = new PageInfo<Map<String,Object>>(list);
        //返回json页面
        return new ViewJsonObject(pageInfo.getList(), pageInfo.getTotal());
    }

    //取消热门（李易衡）
    @Override
    public Integer cancel(Integer circularId) {
        return bannerMapper.cancel(circularId);
    }

    //设置为热门（李易衡）
    @Override
    public Integer setup(Integer circularId) {
        return bannerMapper.setup(circularId);
    }

    //部门表格（李易衡）
    @Override
    public ViewJsonObject<Department> depart(Integer page, Integer limit,String demoReload) {
        //把当前页和每页显示的条数传进来
        PageHelper.startPage(page, limit);
        //调用mapper层
        List<Department> list = bannerMapper.depart(demoReload);
        //创建分页对象,把数据存在pageInfo里
        PageInfo<Department> pageInfo = new PageInfo<Department>(list);
        //返回json页面
        return new ViewJsonObject(pageInfo.getList(), pageInfo.getTotal());
    }

    //修改部门查重（李易衡）
    @Override
    public List<Department> updCompeRepeat(String departmentName) {
        return bannerMapper.updCompeRepeat(departmentName);
    }

    //修改部门（李易衡）
    @Override
    public Integer updcompe(String departmentName, Integer departmentId) {
        return bannerMapper.updcompe(departmentId,departmentName);
    }

    //删除部门（李易衡）
    @Override
    public Integer delcompe(Integer departmentId) {
        return bannerMapper.delcompe(departmentId);
    }

    //添加部门查重（李易衡）
    @Override
    public List<Department> addCompeRepeat(String departmentName) {
        return bannerMapper.addCompeRepeat(departmentName);
    }

    //添加部门（李易衡）
    @Override
    public Integer addcompe(String departmentName) {
        return bannerMapper.addcompe(departmentName);
    }

    //级别表格（李易衡）
    @Override
    public ViewJsonObject<Rank> level(Integer page, Integer limit,String demoReload) {
        //把当前页和每页显示的条数传进来
        PageHelper.startPage(page, limit);
        //调用mapper层
        List<Rank> list = bannerMapper.level(demoReload);
        //创建分页对象,把数据存在pageInfo里
        PageInfo<Rank> pageInfo = new PageInfo<Rank>(list);
        //返回json页面
        return new ViewJsonObject(pageInfo.getList(), pageInfo.getTotal());
    }

    //修改级别查重（李易衡）
    @Override
    public List<Rank> repeat(String rankName) {
        return bannerMapper.repeat(rankName);
    }

    //修改级别（李易衡）
    @Override
    public Integer updlevel(String rankName,Integer rankId) {
        return bannerMapper.updlevel(rankName,rankId);
    }

    //删除级别（李易衡）
    @Override
    public Integer dellevel(Integer rankId) {
        return bannerMapper.dellevel(rankId);
    }

    //添加级别查重（李易衡）
    @Override
    public List<Rank> addrepeat(String rankName) {
        return bannerMapper.addrepeat(rankName);
    }

    //添加级别（李易衡）
    @Override
    public Integer addlevel(String rankName) {
        return bannerMapper.addlevel(rankName);
    }

    //领域列表（李易衡）
    @Override
    public ViewJsonObject<Domoin> field(Integer page, Integer limit,String demoReload) {
        //把当前页和每页显示的条数传进来
        PageHelper.startPage(page, limit);
        //调用mapper层
        List<Domoin> list = bannerMapper.field(demoReload);
        //创建分页对象,把数据存在pageInfo里
        PageInfo<Domoin> pageInfo = new PageInfo<Domoin>(list);
        //返回json页面
        return new ViewJsonObject(pageInfo.getList(), pageInfo.getTotal());
    }

    //修改领域查重（李易衡）
    @Override
    public List<Domoin> updFieldrepeat(String domoinName) {
        return bannerMapper.updFieldrepeat(domoinName);
    }

    //修改领域（李易衡）
    @Override
    public Integer updfield(String domoinName, Integer domoinId) {
        return bannerMapper.updfield(domoinName,domoinId);
    }

    //删除领域（李易衡）
    @Override
    public Integer delfield(Integer domoinId) {
        return bannerMapper.delfield(domoinId);
    }

    //添加领域查重（李易衡）
    @Override
    public List<Domoin> addFieldRepeat(String domoinName) {
        return bannerMapper.addFieldRepeat(domoinName);
    }

    //添加领域（李易衡）
    @Override
    public Integer addfield(String domoinName) {
        return bannerMapper.addfield(domoinName);
    }

    //通知管理查询（李易衡）
    @Override
    public ViewJsonObject<Map<String,Object>> notman(Integer page, Integer limit,String demoReload,String domoin,String departments,String rank) {
//        return bannerMapper.notman(page,limit);
        //把当前页和每页显示的条数传进来
        PageHelper.startPage(page, limit);
        //调用mapper层
        List<Map<String,Object>> list = bannerMapper.notman(demoReload,domoin,departments,rank);
        //创建分页对象,把数据存在pageInfo里
        PageInfo<Map<String,Object>> pageInfo = new PageInfo<Map<String,Object>>(list);
        //返回json页面
        return new ViewJsonObject(pageInfo.getList(), pageInfo.getTotal());
    }

    //地区下拉框（李易衡）
    @Override
    public ArrayList<Region> selRe() {
        ArrayList<Region> list = bannerMapper.selRe();
        return list;
    }

    //领域下拉框（李易衡）
    @Override
    public ArrayList<Domoin> selDo() {
        ArrayList<Domoin> list = bannerMapper.selDo();
        return list;
    }

    //部门下拉框（李易衡）
    @Override
    public ArrayList<Department> selDe() {
        ArrayList<Department> list = bannerMapper.selDe();
        return list;
    }

    //级别下拉框（李易衡）
    @Override
    public ArrayList<Rank> selRa() {
        ArrayList<Rank> list = bannerMapper.selRa();
        return list;
    }

    //项目下拉框（李易衡）
    @Override
    public ArrayList<Project> selCi() {
        return bannerMapper.selCi();
    }

    @Override
    public List<Map<String,Object>> updNotmanrepeat(String circularTitle, String circularLabel, String domoinName, String departmentName,String rankName) {
        return bannerMapper.updNotmanrepeat(circularTitle,circularLabel,domoinName,departmentName,rankName);
    }

//    @Override
//    public Integer updNotman(Integer circularId,String circularTitle, String circularLabel, String regionName, String domoinName, String departmentName, String circularContent,String projectName) {
//        return bannerMapper.updNotman(circularId,circularTitle,circularLabel,regionName,domoinName,departmentName,circularContent,projectName);
//    }

    //获取部门id（李易衡）
    @Override
    public Integer selRegion(String regionName) {
        return bannerMapper.selRegion(regionName);
    }

    //获取领域id（李易衡）
    @Override
    public Integer selDomoin(String domoinName) {
        return bannerMapper.selDomoin(domoinName);
    }

    //获取部门id（李易衡）
    @Override
    public Integer seldepartment(String departmentName) {
        return bannerMapper.seldepartment(departmentName);
    }

    //获取项目id（李易衡）
    @Override
    public Integer selproject(String projectName) {
        return bannerMapper.selproject(projectName);
    }

    //修改通知（李易衡）
    @Override
    public Integer updNotman(Integer circularId, String circularTitle, String circularLabel, Integer circularRegionld, Integer circularDomoinld, Integer circularDepartmentld, String circularContent, Integer circularProjectid,Integer circularRankld) {
        return bannerMapper.updNotman(circularId,circularTitle,circularLabel,circularRegionld,circularDomoinld,circularDepartmentld,circularContent,circularProjectid,circularRankld);
    }

    //获取级别id（李易衡）
    @Override
    public Integer selrank(String rankName) {
        return bannerMapper.selrank(rankName);
    }

    //添加通知（李易衡）
    @Override
    public Integer addNotman(String circularTitle, String circularLabel, Integer circularRegionld, Integer circularDomoinld, Integer circularDepartmentld, String circularContent, Integer circularProjectid, Integer circularRankld,Date time) {
        return bannerMapper.addNotman(circularTitle,circularLabel,circularRegionld,circularDomoinld,circularDepartmentld,circularContent,circularProjectid,circularRankld,time);
    }

    //删除通知（李易衡）
    @Override
    public Integer delnotman(Integer circularId) {
        return bannerMapper.delnotman(circularId);
    }

    //停用通知（李易衡）
    @Override
    public Integer stopnotman(Integer circularId) {
        return bannerMapper.stopnotman(circularId);
    }

    //政策管理查询（李易衡）
    @Override
    public ViewJsonObject<Map<String, Object>> polman(Integer page, Integer limit,String demoReload,String domoin,String departments,String rank) {
        //把当前页和每页显示的条数传进来
        PageHelper.startPage(page, limit);
        //调用mapper层
        List<Map<String,Object>> list = bannerMapper.polman(demoReload,domoin,departments,rank);
        //创建分页对象,把数据存在pageInfo里
        PageInfo<Map<String,Object>> pageInfo = new PageInfo<Map<String,Object>>(list);
        //返回json页面
        return new ViewJsonObject(pageInfo.getList(), pageInfo.getTotal());
    }

    //修改政策查重（李易衡）
    @Override
    public List<Map<String, Object>> updPolmanrepeat(String circularTitle, String circularLabel, String domoinName, String departmentName, String rankName) {
        return bannerMapper.updPolmanrepeat(circularTitle,circularLabel,domoinName,departmentName,rankName);
    }

    //修改政策（李易衡）
    @Override
    public Integer updPolman(Integer circularId, String circularTitle, String circularLabel, Integer circularDomoinld, Integer circularDepartmentld, String circularContent, Integer circularProjectid,Integer circularRankld) {
        return bannerMapper.updPolman(circularId,circularTitle,circularLabel,circularDomoinld,circularDepartmentld,circularContent,circularProjectid,circularRankld);
    }

    //添加政策（李易衡）
    @Override
    public Integer addPolman(String circularTitle, String circularLabel, Integer circularDomoinld, Integer circularDepartmentld, String circularContent, Integer circularProjectid, Integer circularRankld,Date time) {
        return bannerMapper.addPolman(circularTitle,circularLabel,circularDomoinld,circularDepartmentld,circularContent,circularProjectid,circularRankld,time);
    }

    //删除政策（李易衡）
    @Override
    public Integer delPolman(Integer circularId) {
        return bannerMapper.delPolman(circularId);
    }

    //停用政策（李易衡）
    @Override
    public Integer stopPolman(Integer circularId) {
        return bannerMapper.stopPolman(circularId);
    }


//    @Override
//    public String query(Date userCreateTime, Date userFinishTime, String demoReload) {
//        return bannerMapper.query(userCreateTime,userFinishTime,demoReload);
//    }

    //公示管理查询（李易衡）
    @Override
    public ViewJsonObject<Map<String, Object>> pubman(Integer page, Integer limit,String demoReload,String domoin,String departments) {
        //把当前页和每页显示的条数传进来
        PageHelper.startPage(page, limit);
        //调用mapper层
        List<Map<String,Object>> list = bannerMapper.pubman(demoReload,domoin,departments);
        //创建分页对象,把数据存在pageInfo里
        PageInfo<Map<String,Object>> pageInfo = new PageInfo<Map<String,Object>>(list);
        //返回json页面
        return new ViewJsonObject(pageInfo.getList(), pageInfo.getTotal());
    }

    //修改公式（李易衡）
    @Override
    public Integer updPubman(Integer circularId, String circularTitle, String circularLabel, Integer circularDomoinld, Integer circularDepartmentld, String circularContent, Integer circularProjectid,Integer circularRankld) {
        return bannerMapper.updPubman(circularId,circularTitle,circularLabel,circularDomoinld,circularDepartmentld,circularContent,circularProjectid,circularRankld);
    }

    //添加公示（李易衡）
    @Override
    public Integer addPubman(String circularTitle, String circularLabel, Integer circularDomoinld, Integer circularDepartmentld, String circularContent, Integer circularProjectid, Integer circularRankld,Date time) {
        return bannerMapper.addPubman(circularTitle,circularLabel,circularDomoinld,circularDepartmentld,circularContent,circularProjectid,circularRankld,time);
    }

    //删除公示（李易衡）
    @Override
    public Integer delPubman(Integer circularId) {
        return bannerMapper.delPubman(circularId);
    }

    //停用公式（李易衡）
    @Override
    public Integer stopPubman(Integer circularId) {
        return bannerMapper.stopPubman(circularId);
    }

    //头条管理查询（李易衡）
    @Override
    public ViewJsonObject<Map<String, Object>> headman(Integer page, Integer limit,String demoReload) {
        //把当前页和每页显示的条数传进来
        PageHelper.startPage(page, limit);
        //调用mapper层
        List<Map<String,Object>> list = bannerMapper.headman(demoReload);
        //创建分页对象,把数据存在pageInfo里
        PageInfo<Map<String,Object>> pageInfo = new PageInfo<Map<String,Object>>(list);
        //返回json页面
        return new ViewJsonObject(pageInfo.getList(), pageInfo.getTotal());
    }

    //添加头条查询标签
    @Override
    public String  selcir(String circularTitle) {
        return bannerMapper.selcir(circularTitle);
    }

    //添加头条（李易衡）
    @Override
    public Integer addHeadman(String circularTitle,String circularLabel,Date time,Integer circularRegionld) {
        return bannerMapper.addHeadman(circularTitle,circularLabel,time,circularRegionld);
    }

    //标题下拉框（李易衡）
    @Override
    public ArrayList<Circular> selLa(Integer circularSynthesis) {
        return bannerMapper.selLa(circularSynthesis);
    }

    //添加头条查询地址（李易衡）
    @Override
    public Integer selcirr(String circularTitle) {
        return bannerMapper.selcirr(circularTitle);
    }

    //头条查重（李易衡）
    @Override
    public List<Headline> updHeaRepeat(String circularTitle) {
        return bannerMapper.updHeaRepeat(circularTitle);
    }

    //修改头条（李易衡）
    @Override
    public Integer updHeadman(String circularTitle, String circularLabel, Integer circularRegionld,Integer headline_id) {
        return bannerMapper.updHeadman(circularLabel,circularRegionld,circularTitle,headline_id);
    }

    //删除头条（李易衡）
    @Override
    public Integer delHeadman(Integer headlineId) {
        return bannerMapper.delHeadman(headlineId);
    }

    //项目
//    @Override
//    public ViewJsonObject<Map<String, Object>> proman(Integer page, Integer limit) {
//        //把当前页和每页显示的条数传进来
//        PageHelper.startPage(page, limit);
//        //调用mapper层
//        List<Map<String,Object>> list = bannerMapper.proman();
//        //创建分页对象,把数据存在pageInfo里
//        PageInfo<Map<String,Object>> pageInfo = new PageInfo<Map<String,Object>>(list);
//        //返回json页面
//        return new ViewJsonObject(pageInfo.getList(), pageInfo.getTotal());
//    }

    //精准配列表（李易衡）
    @Override
    public ViewJsonObject<Precise> precise(Integer page, Integer limit,String demoReload) {
        //把当前页和每页显示的条数传进来
        PageHelper.startPage(page, limit);
        //调用mapper层
        List<Precise> list = bannerMapper.precise(demoReload);
        //创建分页对象,把数据存在pageInfo里
        PageInfo<Precise> pageInfo = new PageInfo<Precise>(list);
        //返回json页面
        return new ViewJsonObject(pageInfo.getList(), pageInfo.getTotal());
    }

    //新增精准配查重（李易衡）
    @Override
    public List<Precise> addprerepeat(String preciseType) {
        return bannerMapper.addprerepeat(preciseType);
    }

    //新增精准配（李易衡）
    @Override
    public Integer addprecise(String preciseType, String preciseOption) {
        return bannerMapper.addprecise(preciseType,preciseOption);
    }

    //删除精准配（李易衡）
    @Override
    public Integer delprecise(Integer preciseId) {
        return bannerMapper.delprecise(preciseId);
    }

    //修改精准配（李易衡）
    @Override
    public Integer updprecise(Integer preciseId, String preciseType, String preciseOption) {
        return bannerMapper.updprecise(preciseId,preciseType,preciseOption);
    }

    //获取项目表id（李易衡）
    @Override
    public List<Map<String,Object>> proman() {
        return bannerMapper.proman();
    }

    //项目管理查询（李易衡）
    @Override
    public ViewJsonObject<Map<String, Object>> projman(Integer page, Integer limit, List<Map<String,Object>> list98,String demoReload,String domoin,String departments,String itemsObjname) {
        //把当前页和每页显示的条数传进来
        PageHelper.startPage(page, limit);
        //调用mapper层
        List<Map<String,Object>> list = bannerMapper.projman(list98,demoReload,domoin,departments,itemsObjname);
        //创建分页对象,把数据存在pageInfo里
        PageInfo<Map<String,Object>> pageInfo = new PageInfo<Map<String,Object>>(list);
        //返回json页面
        return new ViewJsonObject(pageInfo.getList(), pageInfo.getTotal());
    }

    @Override
    public ViewJsonObject<Map<String, Object>> promanSel(Integer page, Integer limit, List<Map<String, Object>> list98, String demoReload, String domoin, String departments, String itemsObjname, Integer itemsState) {
        //把当前页和每页显示的条数传进来
        PageHelper.startPage(page, limit);
        //调用mapper层
        List<Map<String,Object>> list = bannerMapper.projmanSel(list98,demoReload,domoin,departments,itemsObjname,itemsState);
        //创建分页对象,把数据存在pageInfo里
        PageInfo<Map<String,Object>> pageInfo = new PageInfo<Map<String,Object>>(list);
        //返回json页面
        return new ViewJsonObject(pageInfo.getList(), pageInfo.getTotal());
    }

    //获取项目管理→添加的地址id
    @Override
    public Integer selRegionId(String regionName) {
        return bannerMapper.selRegionId(regionName);
    }

    //获取项目管理→添加的部门id
    @Override
    public Integer selDepartmentId(String departmentName) {
        return bannerMapper.selDepartmentId(departmentName);
    }

    //获取项目管理→添加的领域id
    @Override
    public Integer selDomoinId(String domoinName) {
        return bannerMapper.selDomoinId(domoinName);
    }

    //添加项目（李易衡）
    @Override
    public Integer  addprojman(String circularTitle, Integer itemsRegionId, Date time, Integer itemDepartmentId, String itemContent, String dtdName, Integer itemObj, Integer itemDomoinId, String itemWay, String itemGold, Integer itemGoMoney, String itemCondition, String itemAsk, String itemAskItem, String itemPolicy, String itemGoide, String itemManage) {
        return bannerMapper.addprojman(circularTitle,itemsRegionId,time,itemDepartmentId,itemContent,dtdName,itemObj,itemDomoinId,itemWay,itemGold,itemGoMoney,itemCondition,itemAsk,itemAskItem,itemPolicy,itemGoide,itemManage);
    }

    //修改项目（李易衡）
    @Override
    public Integer updprojman(Integer itemId,String circularTitle, Integer itemsRegionId, Date time, Integer itemDepartmentId, String itemContent, String dtdName, Integer itemObj, Integer itemDomoinId, String itemWay, String itemGold, Integer itemGoMoney, String itemCondition, String itemAsk, String itemAskItem, String itemPolicy, String itemGoide, String itemManage) {
        return bannerMapper.updprojman(itemId,circularTitle,itemsRegionId,time,itemDepartmentId,itemContent,dtdName,itemObj,itemDomoinId,itemWay,itemGold,itemGoMoney,itemCondition,itemAsk,itemAskItem,itemPolicy,itemGoide,itemManage);
    }

    //停用项目
    @Override
    public Integer stopprojman(Integer itemId) {
        return bannerMapper.stopprojman(itemId);
    }

    @Override
    public Integer delprojman(Integer itemId) {
        return bannerMapper.delprojman(itemId);
    }

    @Override
    public ViewJsonObject<Map<String, Object>> projman2(Integer page, Integer limit, List<Map<String, Object>> list98) {
        //把当前页和每页显示的条数传进来
        PageHelper.startPage(page, limit);
        //调用mapper层
        List<Map<String,Object>> list = bannerMapper.projman2(list98);
        //创建分页对象,把数据存在pageInfo里
        PageInfo<Map<String,Object>> pageInfo = new PageInfo<Map<String,Object>>(list);
        //返回json页面
        return new ViewJsonObject(pageInfo.getList(), pageInfo.getTotal());
    }

    //申报方向下拉框（李易衡）
    @Override
    public ArrayList<Map<String, Object>> selDtd() {
        return bannerMapper.selDtd();
    }

    //包含通知下拉框（李易衡）
    @Override
    public ArrayList<Map<String, Object>> selDte() {
        return bannerMapper.selDte();
    }

    //包含政策下拉框（李易衡）
    @Override
    public ArrayList<Map<String, Object>> selCps() {
        return bannerMapper.selCps();
    }

    //精准配类别下拉框（李易衡）
    @Override
    public ArrayList<Map<String, Object>> selType() {
        return bannerMapper.selType();
    }

    @Override
    public Integer project(String circularTitle) {
        return bannerMapper.project(circularTitle);
    }

    @Override
    public Integer itemId(String circularTitle) {
        return bannerMapper.itemId(circularTitle);
    }

    @Override
    public Integer hsnc(Integer itemId,String ctnCircularName) {
        return bannerMapper.hsnc(itemId,ctnCircularName);
    }

    @Override
    public Integer hsnc2(Integer itemId, String cpsCpName) {
        return bannerMapper.hsnc2(itemId,cpsCpName);
    }

    @Override
    public Integer hsnc3(Integer itemId, String dtdName) {
        return bannerMapper.hsnc3(itemId,dtdName);
    }



    //日志
    @Override
    public ViewJsonObject<Map<String, Object>> logman(Integer page, Integer limit,String demoReload) {
        //把当前页和每页显示的条数传进来
        PageHelper.startPage(page, limit);
        //调用mapper层
        List<Map<String,Object>> list = bannerMapper.logman(demoReload);
        //创建分页对象,把数据存在pageInfo里
        PageInfo<Map<String,Object>> pageInfo = new PageInfo<Map<String,Object>>(list);
        //返回json页面
        return new ViewJsonObject(pageInfo.getList(), pageInfo.getTotal());
    }

    @Override
    public Integer loge(String username) {
        return bannerMapper.loge(username);
    }

    @Override
    public Integer hotloge(String username) {
        return bannerMapper.hotloge(username);
    }

    @Override
    public Integer upddeLoge(String username) {
        return bannerMapper.upddeLoge(username);
    }

    @Override
    public Integer deldeLoge(String username) {
        return bannerMapper.deldeLoge(username);
    }

    @Override
    public Integer adddeLoge(String username) {
        return bannerMapper.adddeLoge(username);
    }

    @Override
    public Integer addleLoge(String username) {
        return bannerMapper.addleLoge(username);
    }

    @Override
    public Integer delleLoge(String username) {
        return bannerMapper.delleLoge(username);
    }

    @Override
    public Integer updleLoge(String username) {
        return bannerMapper.updleLoge(username);
    }

    @Override
    public Integer updfiLoge(String username) {
        return bannerMapper.updfiLoge(username);
    }

    @Override
    public Integer delfiLoge(String username) {
        return bannerMapper.delfiLoge(username);
    }

    @Override
    public Integer addfiLoge(String username) {
        return bannerMapper.addfiLoge(username);
    }

    @Override
    public Integer addprLoge(String username) {
        return bannerMapper.addprLoge(username);
    }

    @Override
    public Integer delprLoge(String username) {
        return bannerMapper.delprLoge(username);
    }

    @Override
    public Integer updprLoge(String username) {
        return bannerMapper.updprLoge(username);
    }

    @Override
    public Integer updnoLoge(String username) {
        return bannerMapper.updnoLoge(username);
    }

    @Override
    public Integer addnoLoge(String username) {
        return bannerMapper.addnoLoge(username);
    }

    @Override
    public Integer delnoLoge(String username) {
        return bannerMapper.delnoLoge(username);
    }

    @Override
    public Integer stopnoLoge(String username) {
        return bannerMapper.stopnoLoge(username);
    }

    @Override
    public Integer updpoLoge(String username) {
        return bannerMapper.updpoLoge(username);
    }

    @Override
    public Integer addpoLoge(String username) {
        return bannerMapper.addpoLoge(username);
    }

    @Override
    public Integer delpoLoge(String username) {
        return bannerMapper.delpoLoge(username);
    }

    @Override
    public Integer stoppoLoge(String username) {
        return bannerMapper.stoppoLoge(username);
    }

    @Override
    public Integer updpuLoge(String username) {
        return bannerMapper.updpuLoge(username);
    }

    @Override
    public Integer addpuLoge(String username) {
        return bannerMapper.addpuLoge(username);
    }

    @Override
    public Integer delpuLoge(String username) {
        return bannerMapper.delpuLoge(username);
    }

    @Override
    public Integer stoppuLoge(String username) {
        return bannerMapper.stoppuLoge(username);
    }

    @Override
    public Integer addheLoge(String username) {
        return bannerMapper.addheLoge(username);
    }

    @Override
    public Integer updheLoge(String username) {
        return bannerMapper.updheLoge(username);
    }

    @Override
    public Integer delheLoge(String username) {
        return bannerMapper.delheLoge(username);
    }

    @Override
    public Integer stopproLoge(String username) {
        return bannerMapper.stopproLoge(username);
    }

    @Override
    public Integer delproLoge(String username) {
        return bannerMapper.delproLoge(username);
    }

    @Override
    public ViewJsonObject<Map<String,Object>> delLeByIds(List<String> idList) {
        Integer code = bannerMapper.delLeByIds(idList);
        if (code>0){
            return new ViewJsonObject<Map<String,Object>>(0,"批量删除成功");
        }else {
            return new ViewJsonObject<Map<String,Object>>(1,"批量删除失败");
        }
    }

    @Override
    public ViewJsonObject<Map<String,Object>> delCoByIds(List<String> idList) {
        Integer code = bannerMapper.delCoByIds(idList);
        if (code>0){
            return new ViewJsonObject<Map<String,Object>>(0,"批量删除成功");
        }else {
            return new ViewJsonObject<Map<String,Object>>(1,"批量删除失败");
        }
    }

    @Override
    public ViewJsonObject<Map<String, Object>> delFiByIds(List<String> idlist) {
        Integer code = bannerMapper.delFiByIds(idlist);
        if (code>0){
            return new ViewJsonObject<Map<String,Object>>(0,"批量删除成功");
        }else {
            return new ViewJsonObject<Map<String,Object>>(1,"批量删除失败");
        }
    }

    @Override
    public ViewJsonObject<Map<String, Object>> delPreByIds(List<String> idlist) {
        Integer code = bannerMapper.delPreByIds(idlist);
        if (code>0){
            return new ViewJsonObject<Map<String,Object>>(0,"批量删除成功");
        }else {
            return new ViewJsonObject<Map<String,Object>>(1,"批量删除失败");
        }
    }

    @Override
    public ViewJsonObject<Map<String, Object>> delNotByIds(List<String> idlist) {
        Integer code = bannerMapper.delNotByIds(idlist);
        if (code>0){
            return new ViewJsonObject<Map<String,Object>>(0,"批量删除成功");
        }else {
            return new ViewJsonObject<Map<String,Object>>(1,"批量删除失败");
        }
    }

    @Override
    public ViewJsonObject<Map<String, Object>> delProByIds(List<String> idlist) {
        Integer code = bannerMapper.delProByIds(idlist);
        if (code>0){
            return new ViewJsonObject<Map<String,Object>>(0,"批量删除成功");
        }else {
            return new ViewJsonObject<Map<String,Object>>(1,"批量删除失败");
        }
    }

    @Override
    public ViewJsonObject<Map<String, Object>> delPubByIds(List<String> idlist) {
        Integer code = bannerMapper.delPubByIds(idlist);
        if (code>0){
            return new ViewJsonObject<Map<String,Object>>(0,"批量删除成功");
        }else {
            return new ViewJsonObject<Map<String,Object>>(1,"批量删除失败");
        }
    }

    @Override
    public ViewJsonObject<Map<String, Object>> delPolByIds(List<String> idlist) {
        Integer code = bannerMapper.delPolByIds(idlist);
        if (code>0){
            return new ViewJsonObject<Map<String,Object>>(0,"批量删除成功");
        }else {
            return new ViewJsonObject<Map<String,Object>>(1,"批量删除失败");
        }
    }
    @Override
    public ViewJsonObject<Map<String, Object>> delHeaByIds(List<String> idlist) {
        Integer code = bannerMapper.delHeaByIds(idlist);
        if (code>0){
            return new ViewJsonObject<Map<String,Object>>(0,"批量删除成功");
        }else {
            return new ViewJsonObject<Map<String,Object>>(1,"批量删除失败");
        }
    }
//    public ViewJsonObject<Map<String,Object>> delCoByIds(List<String> idlist) {
//        Integer code = bannerMapper.delCoByIds(idList);
//        if (code>0){
//            return new ViewJsonObject<Map<String,Object>>(0,"批量删除成功");
//        }else {
//            return new ViewJsonObject<Map<String,Object>>(1,"批量删除失败");
//        }
//    }

    @Override
    public Integer hsnc01(Integer itemId, String ctnCircularName) {
        return bannerMapper.hsnc01(itemId,ctnCircularName);
    }

    @Override
    public Integer hsnc02(Integer itemId, String cpsCpName) {
        return bannerMapper.hsnc02(itemId,cpsCpName);
    }

    @Override
    public Integer hsnc03(Integer itemId, String dtdName) {
        return bannerMapper.hsnc03(itemId,dtdName);
    }

    @Override
    public Integer addproLoge(String username) {
        return bannerMapper.addproLoge(username);
    }

    @Override
    public Integer updproLoge(String username) {
        return bannerMapper.updproLoge(username);
    }




}